#ifndef _MESSAGEBOX_H_
#define _MESSAGEBOX_H_

#include <interfacelib/window/panel.h>
#include <interfacelib/window/button.h>
#include <interfacelib/window/Window.h>
#include <utillib/string/string.h>
#include <interfacelib/window/editbox.h>

#define MESSAGEBOX_BUTTON_COUNT		5

namespace interfacelib
{
	namespace Window
	{
		class MessageBox : public interfacelib::Window::Panel
		{
		public:
			MessageBox();
			virtual ~MessageBox();

			bool addButton( DWORD x, DWORD y, const char *imageName , BYTE index = 0 );
			void setTextPos( DWORD x, DWORD y , DWORD width, DWORD heigth );
			void addText( const char *string );
		private:
			virtual void buttonNotify( interfacelib::Window::Window *window );
			interfacelib::Window::Button *m_button[ MESSAGEBOX_BUTTON_COUNT ];
			interfacelib::Window::EditBox *m_textView;
			int m_selectIndex;
		};
	}
}

#endif